xend: earlier remove the backend of tapdisk device in
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 22 Apr 2010 08:44:29 +0000 (09:44 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 22 Apr 2010 08:44:29 +0000 (09:44 +0100)
commit3dc27ee3852c9803ee87ff93224f0f33a49096ab
tree59bb9b95125c297be119e9b8518b4e86cbcedc9d
parent77af399e7ff34b3978f5271843e38bce1d66077d
xend: earlier remove the backend of tapdisk device in
xenstore to release the resource allocated in backend driver
lies in dom0'kernel

Blktapctl thread will use qemu-dm connection instead of tapdisk-ioemu
in the case of FV VM. We found the resource like memory allocated for
this Guest can't be free for backend driver couldn't be closed in qemu-dm.

This patch would  remove the backend of tapdisk device earlier in
xenstore to triger qemu-dm to notify the backend driver to release the
resource allocated.
I have tested this patch at the case of
1, save && restore
2, destory && shutdown
3, snapshot

Signed-off-by: James ( Song Wei ) <jsong@novell.com>
tools/python/xen/xend/XendDomainInfo.py